from django.contrib import admin
# 导入指定的 model 数据模型
from user.models import CCITUser, AClass, AStudent

# Register your models here.
# 指定后端管理界面上 需要显示的列
class UserAdmin(admin.ModelAdmin):
    list_display = ('uID', 'uname', 'upwd','uregisteredtime', 'uemail', 'ustatus')
# 添加班级显示列
class ShowClass(admin.ModelAdmin):
    list_display = ('cID', 'cn', 'cETD', 'cadmin')

# 添加学生表显示列
class ShowStuCol(admin.ModelAdmin):
    list_display = ('sID', 'sname', 'stel', 'sage', 'ssex', 'smajor')

# 注册数据模型
admin.site.register(CCITUser, UserAdmin)
admin.site.register(AClass, ShowClass)
admin.site.register(AStudent, ShowStuCol)